package com.amarsoft.are.log.impl;

import com.amarsoft.are.log.impl.simple.Formatter;
import com.amarsoft.are.log.impl.simple.SimpleHandler;

public class ConsoleHandler extends SimpleHandler
{
  public static final String systemPrefix = "com.amarsoft.are.log.impl.ConsoleHandler.";

  public ConsoleHandler()
  {
    configure();
  }

  public void configure()
  {
    super.configure();
    String str1 = getStringProperty("com.amarsoft.are.log.impl.ConsoleHandler.level");
    if (str1 != null)
      setLogLevel(str1);
    String str2 = getStringProperty("com.amarsoft.are.log.impl.ConsoleHandler.formatter");
    if (str2 == null)
      return;
    try
    {
      Class<?> localClass = Thread.currentThread().getContextClassLoader().loadClass(str2);
      setFormatter((Formatter)localClass.newInstance());
    }
    catch (Exception localException)
    {
      System.err.println("setFormatter Error:" + localException.getMessage());
    }
  }
}

/* Location:           D:\办公软件\反编译工具\jar\are-1.0b96.jar
 * Qualified Name:     com.amarsoft.are.log.impl.ConsoleHandler
 * JD-Core Version:    0.5.3
 */